<%@ Reference Control="~/Controls/Member.ascx" %>
<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_photo_album_comments" CodeFile="view_photo_album_comments.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<%@ Register TagPrefix="Member" TagName="Member" Src="Controls/Member.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr runat=server id="trUserShortCut">
			<td colspan=3  align="center">
				<member:member runat="server" id="ucMemberShortcut"/>
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title" id="Table1">
					<tr>
						<td><asp:label id="lblPhotoDetails" runat="server">Photo Details</asp:label></td>
						<td align="right"><asp:hyperlink id="hlBack" cssclass="white_link" runat="server" font-bold="True" visible="False">Back</asp:hyperlink><b><asp:label id="lblLine" runat="server" visible="False">&nbsp;|&nbsp;</asp:label></b><asp:hyperlink id="hlAddComments" cssclass="white_link" runat="server">Add Comments</asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top" height="100%" class="main_table_border">
				<div class="content">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="main_text">
					<tr>
						<td vAlign="top" align="center"><asp:image id="imgLargePhoto" runat="server" CssClass="small_image" ToolTip='2bmates.com'></asp:image><asp:label id="lblDescription" runat=server></asp:label></td>
					</tr>
					<tr>
						<td class="small" id="tdMessage" runat=server align=center><asp:label id="lblNoComments" runat="server" Visible="False" CssClass="main_text">There are no comments posted.</asp:label></td>
					</tr>
					<tr id="trPagerUp" runat=server>
						<td valign="top"><a name="comments"></a><br>
							<pager:datagridpager id="dgPagerUp" runat="server"></pager:datagridpager>
						</td>
					</tr>					
					<tr>
						<td vAlign="top" align="center"><ASP:DATAGRID id="dgMessages" runat="server" AutoGenerateColumns="False" GridLines="None" Width="100%"
								PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right">
								<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
								<Columns>
									<asp:TemplateColumn>
										<HeaderStyle Width="13%"></HeaderStyle>
										<ItemStyle CssClass="col_image" VerticalAlign="Top" HorizontalAlign="Center"></ItemStyle>
										<ItemTemplate>
											<asp:hyperlink id=hlSender runat="server" CssClass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' Text='<%# DataBinder.Eval(Container.DataItem, "SenderName") %>'></asp:hyperlink>
											<br>
											<asp:hyperlink id=hlSenderImage runat="server" CssClass="small_image" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' ImageUrl='<%# DataBinder.Eval(Container.DataItem, "SenderImageURL") %>' Tooltip='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'></asp:hyperlink>
											<br>
											<asp:image id="imgOnline" runat="server" imageurl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>'>
											</asp:image>
										</ItemTemplate>
										<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
									</asp:TemplateColumn>
									<asp:TemplateColumn>
										<HeaderStyle Width="87%"></HeaderStyle>
										<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
										<ItemTemplate>
												<PRE WRAP STYLE="word-wrap:break-word;"><asp:literal id=litComment runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Comment") %>'></asp:literal></PRE>
												Posted by&nbsp; <asp:hyperlink id=hlSenderName runat="server" CssClass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' Text='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'>
											</asp:hyperlink>&nbsp;on&nbsp; <asp:label id=lblDate runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>'>
											</asp:label>&nbsp;at&nbsp; <asp:label id=lblTime runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Time") %>'>
											</asp:label><br><br><asp:linkbutton id=lbReject runat="server" CssClass="main_text_bold" Font-Bold="True" CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommentID") %>' CommandName="Reject" Visible='<%# DataBinder.Eval(Container.DataItem, "ButtonRejectVisibility") %>'>
												<%# DataBinder.Eval(Container.DataItem, "RejectText") %>
											</asp:linkbutton>&nbsp;<asp:linkbutton id=lbApprove runat="server" CssClass="main_text_bold" CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommentID") %>' CommandName="Approve" Visible='<%# DataBinder.Eval(Container.DataItem, "ButtonsVisibility") %>'>Approve</asp:linkbutton><br><br>
											</ItemTemplate>
										<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
							</ASP:DATAGRID>
						</td>
					</tr>
					<tr id="trPager" runat=server>
						<td valign="top"><pager:datagridpager id="dgPager" runat="server"></pager:datagridpager></td>
					</tr>
				</table>
				</div>
			</td>
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
				<table cellSpacing="1" cellPadding="0" width="100%" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
					</tr>
				</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->	
		</tr>
	</table>
</form>
